package com.example.interview.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

@Mapper
public interface UserMapper {

    /**
     * 查询用户余额
     * @param userId 用户id信息
     * @return  返回余额
     */
    BigDecimal queryBalance(long userId);

    void setMoney(long userId, BigDecimal total);
}
